import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import {h} from 'vue';
import {Switch} from 'ant-design-vue';

export const columns: BasicColumn[] = [
        {
            title: '密钥',
            dataIndex: 'companySecret',
            width: 200,
        },
        {
            title: '公司代码',
            dataIndex: 'companyCode',
            width: 200,
        },
        {
            title: '联系人',
            dataIndex: 'linkMan',
            width: 200,
        },
        {
            title: '合作状态',
            dataIndex: 'companyState',
            width: 200,
        },
        {
            title: '地址',
            dataIndex: 'address',
            width: 200,
        },
        {
            title: '公司名称',
            dataIndex: 'companyName',
            width: 200,
        },
        {
            title: '公司电话',
            dataIndex: 'companyTel',
            width: 200,
        },
        {
            title: '公司LOGO',
            dataIndex: 'companyLogo',
            width: 200,
        },
        {
            title: '过期日期',
            dataIndex: 'expireDate',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'createDate',
            width: 200,
        },
        {
            title: '是否删除',
            dataIndex: 'deleted',
            width: 200,
        },
        {
            title: '更新人',
            dataIndex: 'updateUser',
            width: 200,
        },
        {
            title: '更新时间',
            dataIndex: 'updateTime',
            width: 200,
        },
        {
            title: '创建人',
            dataIndex: 'createUser',
            width: 200,
        },
        {
            title: '创建时间',
            dataIndex: 'createTime',
            width: 200,
        },
];

export const searchFormSchema: FormSchema[] = [
];

export const formSchema: FormSchema[] = [
        {
            label: '密钥',
            field: 'companySecret',
            component: 'Input',
            required: true,
        },
        {
            label: '公司代码',
            field: 'companyCode',
            component: 'Input',
            required: true,
        },
        {
            label: '联系人',
            field: 'linkMan',
            component: 'Input',
            required: true,
        },
        {
            label: '合作状态',
            field: 'companyState',
            component: 'Input',
            required: true,
        },
        {
            label: '地址',
            field: 'address',
            component: 'Input',
            required: true,
        },
        {
            label: '公司名称',
            field: 'companyName',
            component: 'Input',
            required: true,
        },
        {
            label: '公司电话',
            field: 'companyTel',
            component: 'Input',
            required: true,
        },
        {
            label: '公司LOGO',
            field: 'companyLogo',
            component: 'Input',
            required: true,
        },
        {
            label: '过期日期',
            field: 'expireDate',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'createDate',
            component: 'Input',
            required: true,
        },
        {
            label: '是否删除',
            field: 'deleted',
            component: 'Input',
            required: true,
        },
        {
            label: '更新人',
            field: 'updateUser',
            component: 'Input',
            required: true,
        },
        {
            label: '更新时间',
            field: 'updateTime',
            component: 'Input',
            required: true,
        },
        {
            label: '创建人',
            field: 'createUser',
            component: 'Input',
            required: true,
        },
        {
            label: '创建时间',
            field: 'createTime',
            component: 'Input',
            required: true,
        },
];
